package com.pwl.gs.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor //无参构造函数
@AllArgsConstructor //全参构造器
public class CommonResponse<T> {

    private String message;
    private String code;
    private  T data;

    public CommonResponse(T data){
        this.data=data;
    }
    public CommonResponse(String message,String code){
        this.message=message;
        this.data=data;
    }
}
